package com.itheima04;

import java.io.*;

public class Test03 {
    public static void main(String[] args) throws IOException {

        long start = System.currentTimeMillis();
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("C:\\Users\\阳光正直夏明伟15805655221\\Desktop\\截图\\03-飞秋  (资料共享软件).exe"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("C:\\Users\\阳光正直夏明伟15805655221\\Desktop\\截图\\测试.exe"));
        byte[] b = new byte[1024];
        int c;
        while ((c = bis.read(b)) != -1) {
            bos.write(b, 0, c);
        }
        bis.close();
        bos.close();
        long end = System.currentTimeMillis();
        System.out.println(end - start);
    }
}
